import i18n from '@/i18n/i18n'
export const languages = [
  {
    name: i18n.t('admin.language.66eeb4430ad483786273b9292fd4b430'),
    value: 'en'
  },
  {
    name: i18n.t('admin.language.1f116678405b74131988c4542d09ef9e'),
    value: 'zh-CN'
  },
  {
    name: i18n.t('admin.language.ca740ba321abdc91819fa1b4e90610e3'),
    value: 'zh-TW'
  },
  {
    name: i18n.t('admin.language.879de940ed44904135b23665da4cb03f'),
    value: 'ko'
  },
  {
    name: i18n.t('admin.language.ecb71e77d914410f38d476d1bb057830'),
    value: 'de'
  },
  {
    name: i18n.t('admin.language.a64ef9ae9066b65498653b9f6aa082b4'),
    value: 'fr'
  },
  {
    name: i18n.t('admin.language.d29649169641694486585d7c8dfc2dd7'),
    value: 'ru-RU'
  },
  {
    name: i18n.t('admin.language.f2472165994ce4d514761707d181ed5f'),
    value: 'es'
  },
  {
    name: i18n.t('admin.language.7baaa441e0571eb2131e50c6c859eb53'),
    value: 'ja'
  },
  {
    name: i18n.t('admin.language.ccf09b81b8bc279c59cf29542e7e4375'),
    value: 'ar'
  },
  {
    name: i18n.t('admin.language.f05a947403d1e741cfa34181104c008d'),
    value: 'pt'
  },
  {
    name: i18n.t('admin.language.a50e318efd56b903161aa48727dbd783'),
    value: 'da'
  },
  {
    name: i18n.t('admin.language.c45cabe831f91ae294901fb582cd4469'),
    value: 'it'
  },
  {
    name: i18n.t('admin.language.79a8695b61e7b7139f5e7d884409a6e0'),
    value: 'nl'
  },
  {
    name: i18n.t('admin.language.5c76e6766f860e5ca09918fb6c9f15ad'),
    value: 'vi'
  },
  {
    name: i18n.t('admin.language.8de3b88d19e2fc8969fdb59420fad231'),
    value: 'tr-TR'
  },
  {
    name: i18n.t('admin.language.2c5e98df859efa1a994f560666c755d3'),
    value: 'fa'
  },
  {
    name: i18n.t('admin.language.2e4431c8d154e9eb983d175f4e464f0a'),
    value: 'th'
  },
  {
    name: i18n.t('admin.language.3af9da53757f6a4836b180a9e7156245'),
    value: 'id'
  },
  {
    name: i18n.t('admin.language.ad8c6f8a7d902cc8dfd3434b92b33eed'),
    value: 'pl'
  }
]

export function getLanguageObj() {
  const obj = {}
  languages.forEach((item) => {
    obj[item.name] = item.value
  })
  return obj
}
export const langName = function (data) {
  switch (data) {
    case 'en':
      return i18n.t('admin.language.9fad14a8d53ea9877201adb05dd895c2')
    case 'zh-CN':
      return i18n.t('admin.language.d6ee6c9841386e4b468a27b44ee40f65')
    case 'zh-TW':
      return i18n.t('admin.language.f4c44d01af6238a75a71df8ee1ae2fad')
    case 'ko':
      return i18n.t('admin.language.cc359c3499f00645952c799cc5258830')
    case 'de':
      return i18n.t('admin.language.138b0984c5b52a7c66af2fe452bfc289')
    case 'fr':
      return i18n.t('admin.language.6500ebd7c248421455d2e332191cba66')
    case 'ru-RU':
      return i18n.t('admin.language.72cc99171427e77fefe86d939670c3a5')
    case 'es':
      return i18n.t('admin.language.8a51e1dcac3bb6d3798ea6b7a70eb92b')
    case 'ja':
      return i18n.t('admin.language.36c2fcc016c71c9f922110cc9936b0f8')
    case 'ar':
      return i18n.t('admin.language.862edb86f740d7ef19ace3ed1310a4cf')
    case 'pt':
      return i18n.t('admin.language.0270d4637d21652378cc0922ed81f50c')
    case 'da':
      return i18n.t('admin.language.6b36dda394a0ca6d713b18c146428abc')
    case 'it':
      return i18n.t('admin.language.f6c21ed20082b20864efd562f6c0b042')
    case 'nl':
      return i18n.t('admin.language.50d9c1805ba9870eaa5caa37bab53041')
    case 'vi':
      return i18n.t('admin.language.5001857b43a31efc5992c3266da25fea')
    case 'tr-TR':
      return i18n.t('admin.language.3d8c15844f1afb304b8d61dc46502dcf')
    case 'fa':
      return i18n.t('admin.language.5f19c4a0662bf848b2d7c98daaa21aa9')
    case 'th':
      return i18n.t('admin.language.59ce569b4472b9c1f274faf412e6aa77')
    case 'id':
      return i18n.t('admin.language.b365d3112f97f3386f2c8768cb2711ad')
    case 'pl':
      return i18n.t('admin.language.5cd6a6b5cdc02d3201ba5d6e259995e5')
  }
}
